home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Sherlock 2.0 / DevLibSrc / Main_DevLib / LIBtypes.h < prev   
Text File  |  1996-02-05  |  1KB  |  63 lines

  1. /*
  2.     devlib:  Standard types.
  3.     
  4.     source:  LIBtypes.h
  5.     started: January 7, 1993.
  6.     version: February 5, 1996.
  7. */
  8.  
  9. #ifndef LIBtypes_h_
  10. #define LIBtypes_h_
  11.  
  12. #pragma once
  13.  
  14. #if defined(THINK_C) || defined(SYMANTEC_C)
  15.     #include <Types.h>
  16. #endif
  17.  
  18. #ifdef applec
  19.     #ifndef __size_t__    /* This is used in the MPW headers. */
  20.       #define __size_t__
  21.         typedef unsigned long size_t;
  22.     #endif
  23. #endif
  24.  
  25. #ifndef bool_defined
  26.     #define bool_defined
  27.     typedef int bool;
  28. #endif
  29.  
  30. typedef char            sbool;        /* "Short" for arrays of bools. */
  31. typedef unsigned char * pstring;
  32. typedef unsigned int    uint;
  33. typedef unsigned short    ushort;
  34. typedef unsigned long    ulong;
  35. typedef short             word;
  36.  
  37. /*
  38.     Define types used in various header files.
  39. */
  40.  
  41.     /* LIBio.h */
  42.     
  43. #define LIB_IO_TYPEDEFS
  44. typedef struct io_mem_struct        io_mem_block;
  45. typedef struct io_file_struct        io_file;
  46. typedef struct io_path_list_struct    io_path_list;
  47.     
  48.     /* LIBlist.h */
  49.  
  50. #define TYPE_LIST(type)\
  51.     type *    next    /* Pointer to next object. */
  52.  
  53. #define TYPE_LIST2(type)\
  54.     type *    next2;    /* Pointer to next object. */    \
  55.     type *    back2    /* Pointer to previous object. */
  56.  
  57.     /* LIBmi.h */
  58.  
  59. #define LIB_MI_TYPEDEFS
  60. typedef struct mi_struct mi;
  61.  
  62. #endif /* LIBtypes_h_ */
  63.